CC=c:/cygwin/usr/local/bin/arm-apple-darwin-gcc
LD=$(CC)
LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework CoreGraphics -framework GraphicsServices -framework WebCore -lsqlite3

all:    Switcher deploy

Switcher:   main.o Switcher.o MainView.o MyPreferencesTable.o Page1.o Page2.o Page3.o Page4.o PrefsView.o UIPreferencesTableButton.o HTTPProcessor.o
    $(LD) $(LDFLAGS) -o $@ $^


%.o:    %.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:
		rm -f *.o Switcher

deploy:
	    /cygdrive/d/Program\ Files/putty/pscp -pw alpine Switcher root@192.168.1.131:/Applications/Switcher.app/
